package com.huangguolin.cloud.mybatis.entity;


import com.huangguolin.cloud.mybatis.annotation.Colums;

import java.io.Serializable;
import java.util.Objects;

/**
 * 用户表
 */
public class PtUserEntity implements Serializable {
    /**
     * 用户uuid
     */
    @Colums("USER_UUID")
    private String userUuid;
    /**
     *登录名称
     */
    @Colums("USER_NAME")
    private String userName;
    /**
     *密码
     */
    private String password;
    /**
     *邮件地址
     */
    @Colums("EMAIL")
    private String email;
    /**
     *电话
     */
    @Colums("MOBILE")
    private String mobile;
    /**
     *真实姓名
     */
    @Colums("NICE_NAME")
    private String niceName;
    /**
     *注册日期
     */
    @Colums("REGISTERDATE")
    private String registerdate;
    /**
     *备注
     */
    @Colums("REMARK")
    private String remark;
    /**
     *'是否删除标识 0:正常 1:删除',
     */
    private Integer delFlag;
    /**
     *'修改时间'
     */
    @Colums("MODTIME")
    private String modtime;
    /**
     * 用户序号
     */
    @Colums("id")
    private Integer id;
    /**
     * 手机号码
     */
    @Colums("phone")
    private String phone;
    /**
     * 用户昵称
     */
    @Colums("nickname")
    private String nickname;
    /**
     * 用户级别
     */
    @Colums("level")
    private Integer level;
    /**
     * 用户角色
     */
    @Colums("role")
    private Integer role;

    /**
     * 个人简介
     */
    private String introduction;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 照片
     */
    private String photo;

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getNiceName() {
        return niceName;
    }

    public void setNiceName(String niceName) {
        this.niceName = niceName;
    }

    public String getRegisterdate() {
        return registerdate;
    }

    public void setRegisterdate(String registerdate) {
        this.registerdate = registerdate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getModtime() {
        return modtime;
    }

    public void setModtime(String modtime) {
        this.modtime = modtime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "PtUserEntity{" +
                "userUuid='" + userUuid + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", niceName='" + niceName + '\'' +
                ", registerdate='" + registerdate + '\'' +
                ", remark='" + remark + '\'' +
                ", delFlag=" + delFlag +
                ", modtime='" + modtime + '\'' +
                ", id=" + id +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                ", level=" + level +
                ", role=" + role +
                ", introduction='" + introduction + '\'' +
                ", sex=" + sex +
                ", photo='" + photo + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PtUserEntity that = (PtUserEntity) o;
        return Objects.equals(userName, that.userName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userName);
    }
}
